package com.jnevision.policy.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文件政策
 * </p>
 *
 * @author zzk
 * @since 2019-07-30
 */
@TableName("b_document_policy")
public class DocumentPolicy extends Model<DocumentPolicy> {


	private static final long serialVersionUID = -5752008271017137296L;

	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 上传人
     */
    @TableField("user_name")
    private String userName;

    /**
     * 权重
     */
    @TableField("weight")
    private Integer weight;

    /**
     * 文件
     */
    @TableField("file")
    private String file;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "DocumentPolicy [id=" + id + ", title=" + title + ", createTime=" + createTime + ", userName=" + userName
				+ ", weight=" + weight + ", file=" + file + "]";
	}

}